import request from "@/util/request.js"

// 按省级获取设备数量
export function listProvinceNum(param) {
	return request({
		url: '/iot/device/belong/provinceNum',
		method: 'post',
		data: param
	})
}

// 按城市获取设备数量
export function listCityNum(param) {
	return request({
		url: '/iot/device/belong/cityNum',
		method: 'post',
		data: param
	})
}

// 点击Marker获取所有设备列表
export function listDeviceGEO(param) {
	return request({
		url: '/iot/device/belong/listDeviceGEO',
		method: 'post',
		data: param
	})
}

export function listDevice(param) {
	return request({
		url: '/iot/device/belong/listDevice',
		method: 'post',
		data: param
	})
}

export function pageGetDevice(param) {
	return request({
		url: '/iot/device/belong/pageGetDevice',
		method: 'post',
		data: param
	})
}

export function listStatusCount(param) {
	return request({
		url: '/iot/device/belong/statusNum',
		method: 'post',
		data: param
	})
}

export function listProductCount(param) {
	return request({
		url: '/iot/device/belong/productNum',
		method: 'post',
		data: param
	})
}
